/* 圆角边框 border-radius */


/* div {
    width: 100px;
    height: 50px;
    background-color: aqua;
    border-radius: 50px 50px 0 0;
} */

div.circle {
    height: 100px;
    /*与width设置一致*/
    width: 100px;
    background: #9da;
    border-radius: 50px;
    /*四个圆角值都设置为宽度或高度值的一半*/
}


/*任务部分*/

div.semi-circle {
    height: 100px;
    width: 50px;
    background: #9da;
    border-radius: 50px 0 0 50px;
}


/* 阴影 box-shadow */

.box_shadow {
    width: 100px;
    height: 100px;
    background-color: aliceblue;
    box-shadow: 10px 10px 10px inset;
}

.boxshadow-outset {
    width: 100px;
    height: 100px;
    background-color: aliceblue;
    box-shadow: 4px 4px 6px #666;
}

.boxshadow-inset {
    width: 100px;
    height: 100px;
    box-shadow: 4px 4px 6px #666 inset;
}

.boxshadow-multi {
    width: 100px;
    height: 100px;
    box-shadow: 4px 2px 6px #f00, -4px -2px 6px #000, 0px 0px 12px 5px #33CC00 inset;
}


/* 边框应用图片 */

#border-image {
    margin: 0 auto;
    height: 100px;
    line-height: 100px;
    text-align: center;
    font-size: 30px;
    width: 200px;
    border: 15px solid #ccc;
    border-image: url('http://img1.sycdn.imooc.com/52e22a1c0001406e03040221.jpg') 70 repeat;
}


/* 颜色设置rgba */


/* 
body {
    background: url(http://static3.sycdn.imooc.com/static/img/logo_index.png)
} */

p {
    font-size: 42px;
    text-align: center;
    font-weight: bold;
    background-color: rgba(red, green, blue, 0.1);
}


/* 颜色渐变 */

p {
    width: 400px;
    height: 150px;
    line-height: 150px;
    text-align: center;
    color: #000;
    font-size: 24px;
    background-image: linear-gradient(to top left, red, orange, yellow, green, blue, violet);
}


/* 文字与字体 */

.test-demo {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    width: 200px;
    background: #ccc;
}


/* 设置文字 */

@font-face {
    font-family: "MOOC Font";
    src: url("http://www.imooc.com/Amaranth-BoldItalic.otf");
}

.demo {
    width: 340px;
    padding: 30px;
    color: #566F89;
    background: #000;
    font-size: 58px;
    font-family: "MOOC Font";
}


/*设置文本阴影 */

.demo {
    width: 340px;
    padding: 30px;
    font: bold 55px/100% "微软雅黑";
    background: #C5DFF8;
    text-shadow: 2px 2px 0 red;
}


/* 背景 */

.wrap {
    width: 220px;
    border: 20px dashed #000;
    padding: 20px;
    font-weight: bold;
    color: #000;
    background: #ccc url(http://static.mukewang.com/static/img/logo_index.png) no-repeat;
    background-origin: content-box;
    position: relative;
}

.wrap span {
    position: absolute;
    left: 0;
    top: 0;
}

.content {
    height: 80px;
    border: 1px solid #333;
}


/* 制作导航菜单 */

body {
    background: #ebebeb;
}

.nav {
    width: 560px;
    height: 50px;
    font: bold 0/50px Arial;
    text-align: center;
    margin: 40px auto 0;
    background: #f65f57;
    /*制作圆*/
    /*制作导航立体风格*/
}

.nav a {
    display: inline-block;
    -webkit-transition: all 0.2s ease-in;
    -moz-transition: all 0.2s ease-in;
    -o-transition: all 0.2s ease-in;
    -ms-transition: all 0.2s ease-in;
    transition: all 0.2s ease-in;
}

.nav a:hover {
    -webkit-transform: rotate(10deg);
    -moz-transform: rotate(10deg);
    -o-transform: rotate(10deg);
    -ms-transform: rotate(10deg);
    transform: rotate(10deg);
}

.nav li {
    position: relative;
    display: inline-block;
    padding: 0 16px;
    font-size: 13px;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, .5);
    list-style: none outside none;
}


/*使用伪元素制作导航列表项分隔线*/


/*删除第一项和最后一项导航分隔线*/

.nav a,
.nav a:hover {
    color: #fff;
    text-decoration: none;
}